
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
  <div class="LableDiv" style="width:50px;">
    <BtnFind DisplayName="查找" WindowTitle="作业" module="Module.Work">
      <Column type="0" width="60px" displayname="编码" valuefield="Code"></Column>
      <Column type="textbox" width="60px" displayname="名称" valuefield="Name"></Column>
      <Column type="TextBox" width="100px" displayname="交接区" valuefield="ConnectArea.Name"></Column>
      <Column type="CheckBox" width="80px" displayname="上线控制" valuefield="IsOnlineControl"></Column>
      <Column type="CheckBox" width="80px" displayname="下线控制" valuefield="IsOfflineControl"></Column>
      <Column type="CheckBox" width="90px" displayname="完工入库点" valuefield="IsCompletePoint"></Column>
      <Column type="CheckBox" width="65px" displayname="质检点" valuefield="IsQCpoint"></Column>
      <Column type="TextBox" width="150px" displayname="备注" valuefield="Remark"></Column>
    </BtnFind>
  </div>
  <div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="首页" ng-click="btnFirstPage()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="上页" ng-click="btnPrePage()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="下页" ng-click="btnNextPage()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="末页" ng-click="btnLastPage()"></Btn></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label>编码</Label></div>
  <div class="InputDiv"><TextBox value="Module.Work.FocusedRecord.Code" isempty="false"></TextBox></div>
  <div class="LableDiv"><Label>名称</Label></div>
  <div class="InputDiv"><TextBox value="Module.Work.FocusedRecord.Name"></TextBox></div>
  <div class="LableDiv"><Label>上线控制</Label></div>
  <div class="InputDiv"><CheckBox value="Module.Work.FocusedRecord.IsOnlineControl"></CheckBox></div>
  <div class="LableDiv"><Label>下线控制</Label></div>
  <div class="InputDiv"><CheckBox value="Module.Work.FocusedRecord.IsOfflineControl"></CheckBox></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label>交接区</Label></div>
  <div class="InputDiv">
    <Refer EntityName="ConnectArea" Condition="{IsEffective: true}" OrderBy="{Code: 1}" Populate="[{path: 'UpDepartment', select: 'Name'}, {path: 'DownDepartment', select: 'Name'}]"  WindowTitle="交接区" key="Module.Work.FocusedRecord.ConnectArea._id" value="Module.Work.FocusedRecord.ConnectArea.Code" text="Module.Work.FocusedRecord.ConnectArea.Name" ValueField="Code" TextField="Name">
        <Column type="0" width="100px" displayname="编码" valuefield="Code"></Column>
        <Column type="textbox" width="150px" displayname="名称" valuefield="Name"></Column>
        <Column type="dropdownlist" width="100px" enum="DeliveryModeEnum" displayname="配送模式" valuefield="DeliveryMode"></Column>
        <Column type="dropdownlist" width="100px" enum="PushPullModeEnum" displayname="推拉模式" valuefield="PushPullMode"></Column>
        <Column type="textbox" width="100px" displayname="上游部门" valuefield="UpDepartment.Name" IsFilter="false"></Column>
        <Column type="textbox" width="100px" displayname="下游部门" valuefield="DownDepartment.Name" IsFilter="false"></Column>   
    </Refer>
  </div>
  <div class="LableDiv"><Label>完工入库点</Label></div>
  <div class="InputDiv"><CheckBox value="Module.Work.FocusedRecord.IsCompletePoint"></CheckBox></div>
  <div class="LableDiv"><Label>质检点</Label></div>
  <div class="InputDiv"><CheckBox value="Module.Work.FocusedRecord.IsQCpoint"></CheckBox></div>
  <div class="LableDiv"><Label>生效</Label></div>
  <div class="InputDiv"><CheckBox value="Module.Work.FocusedRecord.IsEffective"></CheckBox></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label>备注</Label></div>
  <div class="InputDiv" style="width:42%;height:80px;"><TextareaBox value="Module.Work.FocusedRecord.Remark"></div>
</div>
